package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;

public class ReadCustomResult extends Structure {
	
	public byte opId;
	public byte result;
	public byte[] cid = new byte[5];
	public byte[] fpdh = new byte[2];
	public byte syxz;
	public byte[] ccrq = new byte[2];
	public byte[] cllx = new byte[2];
	public byte[] gl = new byte[2];
	public byte[] pl = new byte[2];
	public byte hpzl;
	public byte[] hphmxh = new byte[6];
	public byte[] jyyxq = new byte[2];
	public byte qzbfq;
	public byte[] zkzl = new byte[2];
	public byte csys;	
	public byte hphmxhLen;	
	
	public byte cidUsed;		
	public byte fpdhUsed;		
	public byte syxzUsed;	
	
	public byte ccrqUsed;		
	public byte cllxUsed;	
	public byte glUsed;		
	
    public byte plUsed;
    public byte hpzlUsed;
    public byte hphmxhUsed;
    
    public byte jyyxqUsed;
    public byte qzbfqUsed;
    public byte zkzlUsed;
    public byte csysUsed;
    public byte[] temp = new byte[3];
    
	public static class ByValue  extends ReadCustomResult implements Structure.ByValue  { }		
	public static class ByReference extends ReadCustomResult implements Structure.ByReference { }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("opId");   
        a.add("result");  
        a.add("cid");
        a.add("fpdh");   
        a.add("syxz");
        a.add("ccrq");   
        a.add("cllx");  
        a.add("gl");
        a.add("pl");   
        a.add("hpzl");
        a.add("hphmxh");
        a.add("jyyxq");   
        a.add("qzbfq");  
        a.add("zkzl");
        a.add("csys");   
        a.add("hphmxhLen");

        a.add("cidUsed");
        a.add("fpdhUsed");   
        a.add("syxzUsed");     
        
        a.add("ccrqUsed");
        a.add("cllxUsed");   
        a.add("glUsed");  
        
        a.add("plUsed");
        a.add("hpzlUsed");   
        a.add("hphmxhUsed");  
 
        a.add("jyyxqUsed");  
        a.add("qzbfqUsed");
        a.add("zkzlUsed");   
        a.add("csysUsed");;
        
        a.add("temp");
        
        return a;  
    }

	@Override
	public String toString() {
		return "ReadCustomResult [opId=" + opId + ", result=" + result + ", cid=" + Arrays.toString(cid) + ", fpdh="
				+ Arrays.toString(fpdh) + ", syxz=" + syxz + ", ccrq=" + Arrays.toString(ccrq) + ", cllx="
				+ Arrays.toString(cllx) + ", gl=" + Arrays.toString(gl) + ", pl=" + Arrays.toString(pl) + ", hpzl="
				+ hpzl + ", hphmxh=" + Arrays.toString(hphmxh) + ", jyyxq=" + Arrays.toString(jyyxq) + ", qzbfq="
				+ qzbfq + ", zkzl=" + Arrays.toString(zkzl) + ", csys=" + csys + ", hphmxhLen=" + hphmxhLen
				+ ", cidUsed=" + cidUsed + ", fpdhUsed=" + fpdhUsed + ", syxzUsed=" + syxzUsed + ", ccrqUsed="
				+ ccrqUsed + ", cllxUsed=" + cllxUsed + ", glUsed=" + glUsed + ", plUsed=" + plUsed + ", hpzlUsed="
				+ hpzlUsed + ", hphmxhUsed=" + hphmxhUsed + ", jyyxqUsed=" + jyyxqUsed + ", qzbfqUsed=" + qzbfqUsed
				+ ", zkzlUsed=" + zkzlUsed + ", csysUsed=" + csysUsed + "]";
	} 
    
    
}
